/**
 * @Author: Bobby
 * @Date: 2022-02-22 15:33:52
 * @LastEditTime: 2022-03-18 14:57:56
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\mixin\previewMixin.js
 * @CIMC-V2
 */
import { mapGetters } from 'vuex'
//预览页mixin
export default {
  created: function () {},
  computed: {
    ...mapGetters('preview', ['getNowPageId', 'getPageData', 'getNowPageData', 'getDeepModelOrLayerInfo']),
    getHasPreview: {
      get() {
        return this.$store.getters['preview/getHasPreview']
      },
      set(val) {
        this.$store.dispatch('preview/setHasPreview', val)
      },
    },

    // getPageModules() {
    //   return this.$store.getters['diy/getPageModules']
    // },
  },
  methods: {},
}
